﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ProStore
{
    public partial class Panel : Form
    {
        public static string ServerIP;
        public static string User;
        public static string Password;

        Registro_control regcontrol = new Registro_control();

        public Panel()
        {
            InitializeComponent();
        }

        private void datosEmpresaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Datos_empresa DE = new Datos_empresa();
            DE.MdiParent = this;
            DE.Show();
           
        }

        private void administraciónToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void Panel_Shown(object sender, EventArgs e)
        {
            Login login = new Login();
            login.refPanel = this;
            login.MdiParent = this;
            login.Show();
        }

        private void Panel_Load(object sender, EventArgs e)
        {
            string[] data = regcontrol.ReadServerInfo();

            ServerIP = data[0];
            User = data[1];
            Password = data[2];
        }
    }
}
